﻿

<!--********************* Part1:Jsp Head *********************-->
<%@page import="com.hitrust.gs.util.date.DateUtil"%>
<%@ page contentType="text/html;charset=UTF-8"%>  
<%@ include file="/framework/head.jsp"%>
<%@ include file="../../common.jsp" %>

<!--********************* Part2:Java Code *********************-->
<%

	OrderDetailSignInSearchEvent event = (OrderDetailSignInSearchEvent)context.getSessionValue("OrderDetailSignInSearchEvent");
	ObjectList list = OrderDetailSignIn.fetch().search(con,event);
%>

<!--********************* Part3:JavaScript Code ***************-->
<!--start 客户端脚本区域-->
<script language=javascript>

var list_code = "listOrderDetailSignIn";

function doExcel(){
    <%if (list.getTotalSize() > 20000) {%>
        alert("导出EXCEL签收数量不能超过20000条！");
        return false;
    <%} else {%>
        window.location.href="<%=Config.getWebPath()%>/GSOrderDetailSignIndown";
    <%}%>
}

function doSearch()
{
	SetValue("s_StartTime",GetValue("i_StartTime")); 
  
    SetValue("s_EndTime", GetValue("i_EndTime")); 
    
    SetValue("s_ConcentricityCode", GetValue("i_ConcentricityCode")); 
    
    SetValue("s_Name", GetValue("i_Name")); 
    
    SetValue("s_DrawingPieceCode", GetValue("i_DrawingPieceCode")); 

	doCommonSearch();
}

key_InitDefault();
key_RegSubmitHandler(doSearch);
</script>


<%=uiBody%>>

<%@ include file="/framework/menu.jsp"%>

<!--********************* Part4:Form  ***************-->
<form id=frm action="<%=Config.getSrv()%>" method="post">
<input type=hidden name="action_code" value="">
<input type=hidden name="Id" value="">
<input type=hidden name=sortOrder value="1">

<!--查询条件保留区域-->



<input type=hidden name="s_StartTime" value="<%=event.getStartTime()%>"> <!--签收开始日期-->

<input type=hidden name="s_EndTime" value="<%=event.getEndTime()%>"> <!--签收结束日期-->

<input type=hidden name="s_ConcentricityCode" value="<%=event.getConcentricityCode()%>"> <!--集中编码-->

<input type=hidden name="s_Name" value="<%=event.getName()%>"> <!--产品名称-->

<input type=hidden name="s_DrawingPieceCode" value="<%=event.getDrawingPieceCode()%>"> <!--图件号-->


<%@ include file="/framework/list_head.jsp"%>

<br>
<!--********************* Part5:Search Area ***************-->
<%=uiSearchStart%>>
<%
	int key_tab = 1 ;
%>
 <%=uiSearchInputTR%>><%=uiSearchInputTDHead%>> 集中编码：&nbsp;&nbsp; <input type="text"
	class="texts" name="i_ConcentricityCode" size="20"
	value="<%=event.getConcentricityCode()%>" key_tab="<%=key_tab++%>">
	&nbsp;&nbsp;&nbsp;&nbsp;产品名称：&nbsp;&nbsp;&nbsp;&nbsp; <input type="text"
	class="texts" name="i_Name" size="20" value="<%=event.getName()%>"
	key_tab="<%=key_tab++%>">
	图&nbsp;件&nbsp;号：&nbsp;&nbsp; <input
	type="text" class="texts" name="i_DrawingPieceCode" size="20"
	value="<%=event.getDrawingPieceCode()%>" key_tab="<%=key_tab++%>">
</td>
</tr>
 <%=uiSearchInputTR%>> <%=uiSearchInputTR%>> <%=uiSearchInputTDHead%>>
签收日期：&nbsp;&nbsp;    
 <%=framework.custom.UIManager.generateDateInput("i_StartTime",event.getStartTime())%>
    ～<%=framework.custom.UIManager.generateDateInput("i_EndTime", event.getEndTime())%>
    <input type="button" value="查询" class="buttons" onclick="doSearch();return false;">&nbsp;<input type="button" value="清空" class="buttons" onclick="doClearEvent();return false;">
</td>
</tr>

<%=uiSearchEnd%>

<!--列表标题-->
<%=UIManager.addListHeadTitle("签收列表")%>

<!--********************* Part6:List Area ***************-->

<%=uiListStart%>>

<%@ include file="/framework/list_foot.jsp"%>

<%
	int index = 1 ;
%>	
	<%=uiListHeadTR%>>
		<%=UIManager.addListHeadCheckBox() %>

		<%=UIManager.addListHead("订单明细编号",index++)%>
		
		<%=UIManager.addListHead("集中编码",index++)%>
		
		<%=UIManager.addListHead("产品名称",index++)%>
		
		<%=UIManager.addListHead("图件号",index++)%>

		<%=UIManager.addListHead("要货总数",index++)%>

		<%=UIManager.addListHead("签收数量",index++)%>
        
        <%=UIManager.addListHead("签收日期",index++)%>

        <%=UIManager.addListHead("签收时间",index++)%>
        
        <%=UIManager.addListHead("签收人",index++)%>

		<%=UIManager.addListHead("签收备注",index++)%>


	<%=uiListHeadTREnd%>>
	
	<!--data-->
<%
	for(int i=0;i<list.size();i++)
	{
		OrderDetailSignIn obj = (OrderDetailSignIn)list.get(i);
%>
	<%=uiListDataTR[i%2]%> align=center>
    	<%=uiListDataTD%>>
    		<input type="checkbox" name="ids" value="<%=obj.getId()%>">
    	</td>
    	
    	<%=uiListDataTD%>><%=obj.getGsOrderDetailId()%></td>
    	 
    	<%=uiListDataTD%>><%=obj.getConcentricityCode()%></td>
    	
    	<%=uiListDataTD%>><%=obj.getName()%></td>
    	
    	<%=uiListDataTD%>><%=obj.getDrawingPieceCode()%></td>
    
    	<%=uiListDataTD%>><%=StringUtils.format(obj.getGsOrderCount(),2)%><%=obj.getProductUnit()%></td>
    
    	<%=uiListDataTD%>><%=StringUtils.format(obj.getGsSigninCount(),2)%><%=obj.getProductUnit()%></td>

    	<%=uiListDataTD%>><%=obj.getGsSigninDate()%></td>
    
        <%=uiListDataTD%>><%=obj.getGsSigninTime()%></td>
        
        <%=uiListDataTD%>><%=obj.getGsSigninPerson()%></td>
               
        <%=uiListDataTD%>><%=obj.getGsSigninExplain()%></td>
  	</tr>
<%	
	}
%>  

<%@ include file="/framework/list_foot2.jsp"%>

<%=uiListEnd%>
<%=uiCommandStart%>> <%=uiCommandTR%>> <%=uiCommandTD%>>

<input type=button value="　　导出EXCEL　　" class="buttons"
	onclick="doExcel();return false;">
</td>
</tr>
<%=uiCommandEnd%>

</form>

<script type="text/javascript">

</script>
<%@ include file="/framework/foot.jsp"%>

